from django.urls import path
from django.views.generic import DetailView

from home.views import *


urlpatterns = [
    #参数1：路由
    #参数2：视图函数
    #参数3：路由名，方便通过reverse来获取路由
    path('',IndexView.as_view(),name = 'index'),
    path('details/', DetailView.as_view(),name='details'),
]
